/**
 * Created by user on 2015/9/14.
 */

module.exports = function (app) {

    var lottery = require('../../controllers/mis/operate/lottery-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/lottery/lotteryList/:page/:size', lottery.lotteryList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/lottery/lotteryDelete', lottery.lotteryDelete);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/lottery/getPrizeByLotteryId/:page/:size', lottery.getPrizeByLotteryId);
    //app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/getPrizeByLotteryId', lotteryActivity.getPrizeByLotteryId);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/lottery/lotteryPrizeAdd', lottery.lotteryPrizeAdd);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/lottery/deleteLotteryPrize', lottery.lotteryPrizeDelete);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/lottery/lotteryPrizeEdit', lottery.lotteryPrizeEdit);

    var banner = require('../../controllers/mis/operate/banner-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/banner/bannerList/:page/:size', banner.bannerList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/banner/bannerAdd', banner.bannerAdd);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/banner/bannerdelete', banner.bannerDelete);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/banner/bannerEdit', banner.bannerEdit);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/banner/bannerPush', banner.bannerPush);

    var card = require('../../controllers/mis/operate/card-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/card/cardList/:page/:size', card.cardList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/card/cardAdd', card.cardAdd);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/card/cardDelete', card.cardDelete);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/card/cardEdit', card.cardEdit);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/card/cardPush', card.cardPush);

    var activity = require('../../controllers/mis/operate/activity-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/activity/activityList/:page/:size', activity.activityList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/activity/activityAdd', activity.activityAdd);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/activity/activityDelete', activity.activityDelete);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/activity/activityEdit', activity.activityEdit);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/activity/partakerList/:page/:size', activity.partakerList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/activity/activityPush', activity.activityPush);

    app.get('/rest/' + RESTFullServiceVersion + '/mis/activity/exportPartaker', activity.exportPartaker);

    var topic = require('../../controllers/mis/operate/topic-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/topic/topicList/:page/:size', topic.topicList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/topic/topicAdd', topic.topicAdd);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/topic/topicEdit', topic.topicEdit);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/topic/topicStatus', topic.topicStatus);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/topic/topicDelete', topic.topicDelete);

    var h5 = require('../../controllers/mis/operate/h5-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/h5/h5List/:page/:size', h5.h5List);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/h5/h5Add', h5.h5Add);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/h5/h5Delete', h5.h5Delete);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/h5/h5Edit', h5.h5Edit);


    var push = require('../../controllers/mis/operate/push-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/push/pushNotice', push.pushNotice);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/push/pushMessage', push.pushMessage);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/push/pushMessageList/:page/:size', push.pushMessageList);

    var theme = require('../../controllers/mis/operate/theme-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/theme/themeList/:page/:size', theme.themeList);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/theme/themeAdd', theme.themeAdd);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/theme/themeDelete', theme.themeDelete);
    app.post('/rest/' + RESTFullServiceVersion + '/mis/theme/themeEdit', theme.themeEdit);


};